Repository navigation
Conversation
Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
Contributor
[Medium impact] The PR appears safe to merge; no blocking issues were found.
|
Open
1 task done
Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
Contributor
Author
|
!build |
Collaborator
|
CI MESSAGE: [79776863]: BUILD STARTED |
Collaborator
|
CI MESSAGE: [79776863]: BUILD PASSED |
MykolaSemylitko
requested changes
Nov 6, 2026
Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
Contributor
Author
|
!build |
MykolaSemylitko
approved these changes
Nov 6, 2026
Collaborator
|
CI MESSAGE: [79856447]: BUILD STARTED |
rostan-t
approved these changes
Nov 6, 2026
Collaborator
|
CI MESSAGE: [79856447]: BUILD FAILED |
Collaborator
|
CI MESSAGE: [79856447]: BUILD PASSED |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Category:
Bug fix (non-breaking change which fixes an issue)
Description:
Fix premature reuse of GDS staging buffers that can corrupt GPU NumPy reader output.
wait_buffers()releases the mutex while synchronizing the reusable CUDA event. Another thread can reclaim the completed batch, submit a newer batch, and re-record the event before the waiter reacquires the mutex. Unconditionally reclaiming the currentscheduled_list then exposes buffers still used by GPU copies.After reacquiring the mutex, use
return_ready()to check the current event recording before reclaiming its buffers. The existing acquisition loop waits again if necessary.Fixes #6623.
Additional information:
Affected modules and functionalities:
GDS staging-buffer reclamation used by
readers.numpy(device="gpu").Key points relevant for the review:
The wait remains outside the mutex. Event querying and reclamation occur under the mutex, keeping the event recording consistent with the scheduled-buffer list.
Tests:
GDSMem.StagingEngineandGDSMem.StagingEngineBigTest(not run locally).New test:
GDSMemTest.ConcurrentStagingBufferReuseruns eight readers against a two-buffer pool with immediate copy submission and checks every output byte. It uses only the engine's public API, with no production hooks or timing sleeps. Detection depends on thread scheduling.Validation:
git diff --checkpassed. The complete modifiedgds_mem_test.cutranslation unit compiled with NVCC.wait_buffers()method interposed. The unmodified case used no method interposition or scheduling hooks.wait_buffers()method extracted from this branch: zero premature buffers and zero corrupt values.cuFileRead, withCUFILE_FORCE_COMPAT_MODE=true. A full DALI rebuild and end-to-end NumPy pipeline validation were not performed.Checklist
Documentation
DALI team only
Requirements
REQ IDs: N/A
JIRA TASK: N/A